import { Module } from '@nestjs/common';
import { PhotosService } from './photos.service';
import { PhotosController } from './photos.controller';
import { MongooseModule } from '@nestjs/mongoose';
import { Photos, PhotosSchema } from './schemas/photos.schema';
import { PhotosType, PhotosTypeSchema } from './schemas/photosType.schema';
import { PhotoTypeController } from './photosType.controller';
import { PhotosTypeService } from './photosType.service';
import { UserFocusPhotos, UserFocusPhotosSchema } from '@api/user/schemas/userFocusPhotos.schema';
import { PhotosProfile, PhotosProfileSchema } from './schemas/photosProfile.schema';
import { PhotosProfileService } from './photosProfile.service';
import { PhotosProfileController } from './photosProfile.controller';
import { User, UserSchema } from '@api/user/schemas/user.schema';

@Module({
    imports: [
        MongooseModule.forFeature([
            { name: User.name, schema: UserSchema },
            { name: Photos.name, schema: PhotosSchema },
            { name: PhotosProfile.name, schema: PhotosProfileSchema },
            { name: PhotosType.name, schema: PhotosTypeSchema },
            { name: UserFocusPhotos.name, schema: UserFocusPhotosSchema },
        ]),
    ],
    controllers: [PhotosController, PhotoTypeController, PhotosProfileController],
    providers: [PhotosService, PhotosTypeService, PhotosProfileService],
})
export class PhotosModule {}
